package com.hyf.glidev4;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.hyf.glidev4.activity.GlideBaseActivity;
import com.hyf.glidev4.activity.GlideBigGifActivity;
import com.hyf.glidev4.activity.GlideRecyclerActivity;
import com.hyf.glidev4.activity.GlideTransformationActivity;

import butterknife.OnClick;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    protected boolean setDisplayHomeAsUpEnabled() {
        return false;
    }

    @OnClick(R.id.btn_glide_base)
    void gotoBase(View v) {
        startActivity(new Intent(MainActivity.this, GlideBaseActivity.class));
    }

    @OnClick(R.id.btn_glide_recycler)
    void gotoRecycler(View v) {
        startActivity(new Intent(MainActivity.this, GlideRecyclerActivity.class));
    }

    @OnClick(R.id.btn_glide_transformation)
    void gotoTransformation(View v) {
        startActivity(new Intent(MainActivity.this, GlideTransformationActivity.class));
    }

    @OnClick(R.id.btn_glide_biggif)
    void gotoBigGif(View view) {
        startActivity(new Intent(this, GlideBigGifActivity.class));
    }
}
